<?php if ($this->isAjax()):?>
<h3 class="flb">
	<em id="return_<?php echo $_GET['handlekey']?>">记账</em>
	<span>
		<a href="javascript:;" class="flbc" onclick="hideWindow('<?php echo $_GET['handlekey']?>');" title="关闭">关闭</a>
	</span>
</h3>
<div style="width:260px; height:150px; padding:10px;">
<?php endif;?>

<form action="index.php?m=record&a=amend" method="post">
日期：<input type="text" name="DiaryDate" value="<?php echo $this->RecordInfo['DiaryDate']?>" /><br />
账户：<select name="AccountID">
<?php foreach($this->AccountList as $k=>$v):?>
<option value="<?php echo $v['AID']?>"<?php if($this->RecordInfo['AccountID'] == $v['AID']): ?> selected="selected"<?php endif; ?>><?php echo $v['AccountName']?></option>
<?php endforeach;?>
</select><br />
流入：<input type="text" name="Income" value="<?php echo $this->RecordInfo['Income']?>" /><br />
流出：<input type="text" name="Expend" value="<?php echo $this->RecordInfo['Expend']?>" /><br />
备注：<input type="text" name="Remark" value="<?php echo $this->RecordInfo['Remark']?>" /><br />
<input type="hidden" name="aid" value=<?php echo $this->RecordInfo['AID']?> />
<input type="hidden" name="do" value="save" />
<input type="submit" name="save" value="保存" />
</form>

<?php if ($this->isAjax()):?>
</div>
<?php endif;?>